package spring.j2024_11_15_2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import spring.controller.UserController;
import spring.service.UserService;

import java.beans.Introspector;

@SpringBootApplication
public class J202411152Application {

    public static void main(String[] args) {
        ApplicationContext context =  SpringApplication.run(J202411152Application.class, args);
        UserController controller;
        controller = (UserController) context.
                getBean(UserController.class);
        controller .sayHi();
    }

}
